package com.cty.Controller;

import com.cty.service.StudentService;
import com.cty.pojo.Student;

import java.util.List;

public class StudentController {
    private StudentService studentService;

    public void setStudentService(StudentService studentService) {
        this.studentService = studentService;
    }

    public List<Student> findAll() {
        List<Student> studentList = studentService.findAll();
        System.out.println("Controller" + studentList);
        return studentList;
    }
}
